package p4;

/**
 * @author krystal
 * @date 2022/11/10 9:15
 */
public class Demo3 {
    public static void main(String[] args) {
        print(123);
    }

    public static void print(int num){
        if(num > 9){
            print(num/10);
        }
        System.out.println(num % 10);
    }
}
